package org.example;


import cn.dev33.satoken.config.SaSignConfig;
import cn.dev33.satoken.sign.SaSignTemplate;
import cn.hutool.core.lang.Console;
import cn.hutool.http.HttpUtil;

import java.util.LinkedHashMap;
import java.util.Map;

public class RateLimiterMain {
    public static void main(String[] args) throws InterruptedException {
        Console.log(HttpUtil.get("http://127.0.0.1:8080/api1"));
        for (int i = 0; i < 5; i++) {
            Thread.sleep(200);
            Console.log(HttpUtil.get("http://127.0.0.1:8080/api1/hello"));
        }
        Console.log(HttpUtil.get("http://127.0.0.1:8080/api2/hello"));
        Console.log(HttpUtil.get("http://127.0.0.1:8080/api2/hello"));


    }
}